﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ModelLibrary
{
    [XmlType]
    public class Instance
    {
        [XmlAttribute]
        public int idKey { get { return _idKey; } set { _idKey = value; } }
        private int _idKey = 0;

        [XmlAttribute]
        public string sort { get { return _sort; } set { _sort = value; } }
        private string _sort = "";
        [XmlAttribute]
        public string taskName { get { return _taskName; } set { _taskName = value; } }
        private string _taskName = "";

        public string databaseType { get { return _databaseType; } set { _databaseType = value; } }
        private string _databaseType = "";

        public string address { get { return _address; } set { _address = value; } }
        private string _address = "";
        [XmlAttribute]
        public string instance { get { return _instance; } set { _instance = value; } }
        private string _instance = "";
        [XmlAttribute]
        public string port { get { return _port; } set { _port = value; } }
        private string _port = "";

        public string loginName { get { return _loginName; } set { _loginName = value; } }
        private string _loginName = "";
        [XmlAttribute]
        public string password { get { return _password; } set { _password = value; } }
        private string _password = "";

        public string connectTimeout { get { return _connectTimeout; } set { _connectTimeout = value; } }
        private string _connectTimeout = "10";

        public bool taskStatus { get { return _taskStatus; } set { _taskStatus = value; } }
        private bool _taskStatus = true;

        public string modifyTime { get { return _modifyTime; } set { _modifyTime = value; } }
        private string _modifyTime = DateTime.Now.ToString(AppSets.TimeFormatString);

        public string linkInfo { get { return _linkInfo; } set { _linkInfo = value; } }
        private string _linkInfo = "";
    }
}
